package com.ruoyi.users.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.users.mapper.AddIlikeMapper;
import com.ruoyi.users.domain.AddIlike;
import com.ruoyi.users.service.IAddIlikeService;

/**
 * 点赞Service业务层处理
 * 
 * @author zbz
 * @date 2024-05-19
 */
@Service
public class AddIlikeServiceImpl implements IAddIlikeService 
{
    @Autowired
    private AddIlikeMapper addIlikeMapper;

    /**
     * 查询点赞
     * 
     * @param id 点赞主键
     * @return 点赞
     */
    @Override
    public AddIlike selectAddIlikeById(Long id)
    {
        return addIlikeMapper.selectAddIlikeById(id);
    }

    /**
     * 查询点赞列表
     * 
     * @param addIlike 点赞
     * @return 点赞
     */
    @Override
    public List<AddIlike> selectAddIlikeList(AddIlike addIlike)
    {
        return addIlikeMapper.selectAddIlikeList(addIlike);
    }

    /**
     * 新增点赞
     * 
     * @param addIlike 点赞
     * @return 结果
     */
    @Override
    public int insertAddIlike(AddIlike addIlike)
    {
        return addIlikeMapper.insertAddIlike(addIlike);
    }

    /**
     * 修改点赞
     * 
     * @param addIlike 点赞
     * @return 结果
     */
    @Override
    public int updateAddIlike(AddIlike addIlike)
    {
        return addIlikeMapper.updateAddIlike(addIlike);
    }

    /**
     * 批量删除点赞
     * 
     * @param ids 需要删除的点赞主键
     * @return 结果
     */
    @Override
    public int deleteAddIlikeByIds(Long[] ids)
    {
        return addIlikeMapper.deleteAddIlikeByIds(ids);
    }

    /**
     * 删除点赞信息
     * 
     * @param id 点赞主键
     * @return 结果
     */
    @Override
    public int deleteAddIlikeById(Long id)
    {
        return addIlikeMapper.deleteAddIlikeById(id);
    }
}
